#ifndef _GEOMETRY_DYNSPHERE_H_
#define _GEOMETRY_DYNSPHERE_H_

#include "Shape.h"
#include "Ray.h"
#include "../Basis/rgb.h"

class DynSphere : public Shape
{
public:
	DynSphere(const Vector3& _ocenter, float _radius, const rgb& _color, float _mintime, float _maxtime);
	bool hit(const Ray& r, float tmin, float tmax, float time, HitRecord &record) const;
	bool shadowHit(const Ray& r, float tmin, float tmax, float time) const;

	Vector3 getCenter(float time) const;

	Vector3 ocenter;
	float mintime;
	float maxtime;
	float radius;
	rgb color;
};

#endif